<%@page contentType="text/html; charset=utf-8" language="java" %>
<%@page import="biz.*" %>
<%
String ulink = "login.jsp";
String text ="登陆iWiki帐号";
String adminlink="";
if(session.getAttribute("uid") != null){
	ulink = "user.jsp";
	text = UserBiz.getUserByUid(Integer.parseInt(session.getAttribute("uid").toString())).getUname();
	if(UserBiz.getUserByUid(Integer.parseInt(session.getAttribute("uid").toString())).getTagAdmin())
		adminlink="<a href=\"useradmin.jsp\" target=\"_blank\">用户管理</a>&nbsp;&nbsp;<a href=\"itemadmin.jsp\" target=\"_blank\">词条管理</a>&nbsp;&nbsp;";
}
%>
<html>
	<head>
		<title>这只是一个小小的Wiki网站</title>	
		<link rel="stylesheet" type="text/css" href="css.css">
	</head>
	<body>
	<center>
	<p id="nav">
	<%=adminlink%><a href="additem.jsp?l=0&p=0&r=0">创建词条</a>&nbsp;&nbsp;<a href=<%=ulink%>><%=text%></a>
	</p>
		<div id="logo"><img src=image/logo_big.png alt="iWiki"></div>
		<form method="post" action="search.jsp?action=search">
		<table>
		<tr><input type="text" style="width:240px;" name="name" class="input"></tr>
		<br/><br/>
		<tr><input type="submit" style="width:60px;" value="搜索" class="button"></tr>
		</table>
		</form>
	</center>
	<jsp:include page="/copyright.html"/>
	</body>
</html>